package com.softline.documentsmall.controller;


import com.softline.documentsmall.entity.EntryDetails;
import com.softline.documentsmall.ret.ReturnVO;
import com.softline.documentsmall.ret.ReturnVOUtils;
import com.softline.documentsmall.service.IndexLibraryNumService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhongweicheng
 * @date 2020/12/25
 */
@Api(value="首页资源数量",tags={"首页资源数量"})
@RestController
@RequestMapping("/indexLibrary")
@CrossOrigin(allowCredentials = "true",allowedHeaders = "*")
public class IndexLibraryNumController {

    @Autowired
    IndexLibraryNumService service;


    @ApiOperation(value="首页资源数量获取", notes = "首页资源数量获取")
    @GetMapping(value = "/getAll")
    public ReturnVO getIssues(){
        return ReturnVOUtils.success(service.findAll());
    }

}
